/**
 * Copyright (c) 2009.kingbi.
 * All rights reserved.
 */

package com.kingbi.system.function.jsfBean;

import java.util.List;


import com.kingbi.system.function.model.FunctionModel;
import com.kingbi.util.jsf.ListPageBean;


/**
 * Class description goes here.
 * 
 * Created by Auto Code Produce System
 * User: 
 * Date: 20091028
 * Time: 161544
 */

public class FunctionDataBean extends ListPageBean
{

        /*
        *功能ID
        */
        private int functionID;
        /*
        *功能编码
        */
        private String funcCode = "";
        /*
        *功能名称
        */
        private String funName = "";
        /*
        *功能描述
        */
        private String describe = "";
        /*
        *功能页面
        */
        private String pageUrl = "";
        /*
        *功能菜单级别
        */
        private String funcLevel = "";
        /*
        *功能状态
        */
        private String funStatus = "";
        /*
        *父功能编码
        */
        private String fatherFunCode = "";
 
        /*
         * 在父菜单下的显示顺序
         */
        private int funOrder;

        /*
         * 是否有子菜单 
         */
        private String hasChild = "";
        
        /*
         * 父菜单名称
         */
        private String fatherName = "";
        
        /*
         * 从角色功能关联表中读取的本的功能的权限
         */
        private String funRight = "";

        /*
         * 标记本二级的子菜单已显示完毕
         * end
         */
        private String thisTwoMenuEnd = "";
 

        public String getFunRight() {
			return funRight;
		}


		public void setFunRight(String funRight) {
			this.funRight = funRight;
		}


		public String getThisTwoMenuEnd() {
			return thisTwoMenuEnd;
		}


		public void setThisTwoMenuEnd(String thisTwoMenuEnd) {
			this.thisTwoMenuEnd = thisTwoMenuEnd;
		}


		public String getFuncCode()
        {
                return funcCode;
        }
 

        public void setFuncCode(String funcCode)
        {
                this.funcCode = funcCode;
        }
 

 

        public String getDescribe()
        {
                return describe;
        }
 

        public void setDescribe(String describe)
        {
                this.describe = describe;
        }
 

        public String getPageUrl()
        {
                return pageUrl;
        }
 

        public void setPageUrl(String pageUrl)
        {
                this.pageUrl = pageUrl;
        }
 

        public String getFuncLevel()
        {
                return funcLevel;
        }
 

        public void setFuncLevel(String funcLevel)
        {
                this.funcLevel = funcLevel;
        }
 

        public String getFunStatus()
        {
                return funStatus;
        }
 

        public void setFunStatus(String funStatus)
        {
                this.funStatus = funStatus;
        }
 

        public String getFatherFunCode()
        {
                return fatherFunCode;
        }
 

        public void setFatherFunCode(String fatherFunCode)
        {
                this.fatherFunCode = fatherFunCode;
        }
 

        public FunctionModel getJsfModel()
        {
                FunctionModel functionModel=new FunctionModel();
                functionModel.setFunctionID(this.functionID) ;
                functionModel.setFuncCode(this.funcCode) ;
                functionModel.setName(this.funName) ;
                functionModel.setDescribe(this.describe) ;
                functionModel.setPageUrl(this.pageUrl) ;
                functionModel.setFuncLevel(this.funcLevel) ;
                functionModel.setFunStatus(this.funStatus) ;
                functionModel.setFatherFunCode(this.fatherFunCode) ;
                functionModel.setFunOrder(this.funOrder);
                functionModel.setHasChild(this.hasChild);
                functionModel.setFatherName(this.fatherName);
                return functionModel;
        }

        public void getJsfDataBean(FunctionModel theModel)
        {
                this.setFunctionID(theModel.getFunctionID()) ;
                this.setFuncCode(theModel.getFuncCode()) ;
                this.setFunName(theModel.getName()) ;
                this.setDescribe(theModel.getDescribe()) ;
                this.setPageUrl(theModel.getPageUrl()) ;
                this.setFuncLevel(theModel.getFuncLevel()) ;
                this.setFunStatus(theModel.getFunStatus()) ;
                this.setFatherFunCode(theModel.getFatherFunCode()) ;
                this.setFunOrder(theModel.getFunOrder());
                this.setHasChild(theModel.getHasChild());
                this.setFatherName(theModel.getFatherName());
        }

        public void getEmptyJsfBean(  )   
        {            
                this.setFuncCode("");
                this.setFunName("");
                this.setDescribe("");
                this.setPageUrl("");
                this.setFuncLevel("");
                this.setFunStatus("");
                this.setFatherFunCode("");
                this.setFunOrder(0);
                this.setHasChild("");
                this.setFatherName("");
        }


        public int getFunctionID()
        {
            return functionID;
        }


        public void setFunctionID(int functionID)
        {
            this.functionID = functionID;
        }


        public int getFunOrder()
        {
            return funOrder;
        }


        public void setFunOrder(int funOrder)
        {
            this.funOrder = funOrder;
        }


        public String getHasChild()
        {
            return hasChild;
        }


        public void setHasChild(String hasChild)
        {
            this.hasChild = hasChild;
        }


        public String getFatherName()
        {
            return fatherName;
        }


        public void setFatherName(String fatherName)
        {
            this.fatherName = fatherName;
        }


		public String getFunName() {
			return funName;
		}


		public void setFunName(String funName) {
			this.funName = funName;
		}



}
